package com.lcf.system.vo;

import com.lcf.framework.annotation.DictFile;
import com.lcf.framework.annotation.DictTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 商品(Goods)表实体类
 *
 * @author lcf
 * @since 2025-05-02 11:54:59
 */
@Data
@NoArgsConstructor
public class GoodsVO {
    //id
    @Schema(description = "id")
    private Long id;
    //分类id
    @Schema(description = "分类id")
    @DictTable(tableName = "goods_category", primaryKey = "id", fields = {"name"}, nameField = {"categoryName"})
    private Long categoryId;
    //分类名称
    @Schema(description = "分类名称")
    private String categoryName;
    //店铺id
    @Schema(description = "店铺id")
    @DictTable(tableName = "store", primaryKey = "id", fields = {"name"}, nameField = {"storeName"})
    private Long storeId;
    //店铺名称
    @Schema(description = "店铺名称")
    private String storeName;
    //商品名称
    @Schema(description = "商品名称")
    private String goodsName;
    //商品封面
    @Schema(description = "商品封面")
    @DictFile
    private String goodsImg;
    //商品价格
    @Schema(description = "商品价格")
    private BigDecimal goodsPrice;
    //规格
    @Schema(description = "规格")
    private String goodsSpec;
    //创建时间
    @Schema(description = "创建时间")
    private String createTime;
}

